package cn.stylefeng.guns.modular.storage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.stylefeng.guns.modular.storage.entity.StoragePeriod;
import cn.stylefeng.guns.modular.storage.model.params.StoragePeriodParam;
import cn.stylefeng.guns.modular.storage.model.result.StoragePeriodResult;

/**
 * 期间库容统计 Mapper 接口
 */
public interface StoragePeriodMapper extends BaseMapper<StoragePeriod> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2022-05-12
     */
    List<StoragePeriodResult> customList(@Param("paramCondition") StoragePeriodParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2022-05-12
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") StoragePeriodParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2022-05-12
     */
    Page<StoragePeriodResult> customPageList(@Param("page") Page page, @Param("paramCondition") StoragePeriodParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2022-05-12
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") StoragePeriodParam paramCondition);

	StoragePeriodResult findBySpec(@Param("paramCondition")StoragePeriodParam param);

}
